#include "task.hpp"
#include "ThreadPool.hpp"
#include <unistd.h>


/*int main()
{
    LOG(DEBUG, "begin end\n");

    return 0;
}*/

/*int main()
{
    Log lg;
    lg.LogMessage("test.cc", 10, DEBUG, "xxx\n");

    LOG(DEBUG, "%d begin %c end\n", 1,'A');
    LOG(DEBUG, "%d begin %c end\n", 2,'B');

    LOG(DEBUG, "begin end\n");

    return 0;
}*/

/*int main()
{
    Log log(FILE, "log.txt");
    //(const std::string filename, int filenumber, int level, const char* format, ...)
    log.LogMessage("main.cc", 11, DEBUG, "%d begin %c end\n", 1,'A');
    log.LogMessage("main.cc", 11, DEBUG, "%d begin %c end\n", 2,'B');

    return 0;
}*/

/*int main()
{
    ThreadPool<Task> TPool;
    TPool.Init();
    TPool.Start();//线程池需要在任务来临之前先执行任务
    while(true)
    {
        int num1 = rand()%10+1;
        usleep(1000);
        int num2 = rand()%10+1;
        Task t(num1, num2);
        TPool.Equeue(t);
        sleep(2);
    }

    return 0;
}*/